// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import {cascader} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App'
import $ from 'jquery'

import { emoji } from './utils/emoji'
import "babel-polyfill";
import 'url-search-params-polyfill';
import VueDirectiveImagePreviewer from 'vue-directive-image-previewer/src/index.js'
import 'vue-directive-image-previewer/dist/assets/style.css'


Vue.prototype.emoji = emoji;
Vue.config.productionTip = false
Vue.use(VueDirectiveImagePreviewer,{
  background: {     // or : background: '#000'
    color: 'rgba(0, 0, 0, 0.7)' // or rgba or rgb     // or image: 'url(xxx)'
  },
    type: 'move',   // copy or move
    // transition
    animate: {
      duration: 600,
      delay: 500
    },
    // cursor(css)
    cursor: 'pointer',
    clickMethod: 'doubleClick'   // click or doubleClick
  })


Vue.use(cascader);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: {App},
  template: '<App/>'
});
